/*
 * @(#)cn.design.pattern.proxy.staticproxy 2020/4/21/0021
 *
 * Copy Right@ 人人译视界
 */


package cn.design.pattern.proxy.staticproxy;

/**
 * <pre>
 * @author tuwei
 *
 * @version 0.9
 *
 * 修改版本: 0.9
 * 修改日期: 2020/4/21/0021
 * 修改人 :  tuwei
 * 修改说明: 初步完成
 * 复审人 ：
 * </pre>
 */
public class TeacherDaoProxy implements ITeacherDao {
	private ITeacherDao teacherDao;

	public TeacherDaoProxy(ITeacherDao teacherDao) {
		this.teacherDao = teacherDao;
	}

	@Override
	public void teach() {
		System.out.println("开始代理");
		teacherDao.teach();
		System.out.println("提交......");
	}
}